import $http from '@/utils/request'
export function login (username, password) {
  const data = {
    account: username,
    password: password
  }
  return $http({
    url: '/api/ac/login',
    method: 'post',
    data: data
  })
}

export function logout () {
  return $http({
    url: '/api/ac/logout',
    method: 'post'
  })
}
